<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
		<title>提取页面</title>
		<link href="css/style.css" rel="stylesheet" type="text/css">
	</head>
	<body>
	  <div id="index">
	  	<div class="t_top">
	  		
	  		<img src="img/quan.png">
	  		<h1>已为您规划好精准志愿表</h1>
	  	</div>
	  	 
	  	<div class="t_m w95">
	  		<h2>请完善后资料提取</h2>
	  	<form action="ShowSchool.action" method="post" id="form">	
	  			
	<div class="kk clearfix">
		<div class="ll fl"><span style="color: #ff0000; font-weight: bold;">*</span>姓名</div>
		<div class="mm fl"><input class="input_score" placeholder="请输入姓名" id="name" name="name" type="text"></div>
		
		
	</div>
	<div class="kk clearfix">
		<div class="ll fl"><span style="color: #ff0000; font-weight: bold;">*</span>联系电话</div>
		<div class="mm fl"><input class="input_score" placeholder="请输入手机号码" name="phoneno" id="phoneno" type="text"></div>
		
		
	</div>
	<div class="kk clearfix">
		<div class="ll fl"><span style="color: #ff0000; font-weight: bold;">*</span>所在高中</div>
		<div class="mm fl"><input class="input_score" placeholder="请填写所在高中" id="school" name="school" type="text"></div>
		
		
	</div>
		<input type="hidden" name = "score" value="${score }">
		<input type="hidden" name="property" value="${property }">
		<c:forEach items="${cCode }" var="c">
		
		<input type="hidden" name="cCode" value="${c }">
		
		</c:forEach>
	<div class="kk clearfix">
		<div class="ll fl"><span style="color: #ff0000; font-weight: bold;">*</span>提取号码</div>
		<div class="mm fl"><input class="input_score" placeholder="请输入提取码" name="tqm" type="text"></div>
		
		
	</div>
	<div class="kk clearfix">
		<div class="ll fl"><span style="color: #ff0000; font-weight: bold;">*</span>QQ号码</div>
		<div class="mm fl"><input class="input_score" placeholder="请填写QQ" name="qq" id="qq" type="text"></div>
		
		
	</div>
    
	
	
	<div class="btn_school">
              <button type="button" class="btn_form" id="" onclick="goSubmit()">立即提取</button>
            </div>
	  		
	  	</div>
	  </div>
		</form>
		<script type='text/javascript' src="js/jquery.min.js"></script>
		<script type="text/javascript">
	function goSubmit(){
	
	var name = $("#name").val();
	var phoneno = $("#phoneno").val();
	var school = $("#school").val();
	var qq = $("#qq").val();
	if(name===null||name===""){
		alert("请输入你的姓名");
         return false;
	}
	if(phoneno===null|| phoneno===""){
		alert("请输入你的手机号");
         return false;
	
	}else{
		if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(phoneno))){ 
	  		alert("不是完整的11位手机号或者正确的手机号前七位"); 
	  		return false; 
 		} 
	} 
	if(school===null||school===""){
		alert("请输入你的学校");
         return false;
	
	} 
	if(qq===null||qq===""){
		alert("请输入你的QQ号码");
         return false;
	}
		$("#form").submit();
};
		 </script>
	</body>
</html>

